//商品前端业务逻辑接口

function queryItemsListByCatalogName(catalogName){
    //http://localhost:8080/xiaomimall/items/catalog/手机
    return axios.get(baseUrl+"/items/catalog/"+catalogName);
}

function queryItemsPagerListByCatalogName(params){
    return axios.get(baseUrl+'/items/pager/catalog',{params});
}

function queryItemById(id){
    return axios.get(baseUrl+"/items/query/"+id);
}